package com.zrwl.poscloud.base.constants;

/**
 * @author liuxiaolong
 * @date 2022/7/23
 * @description
 */
public class PayableDetailConstants {

    /***
     * status
     */
    public static final int deleted = 0;
    public static final int notPaied = 1;//待付款
    public static final int paied = 2;//已付款
    public static final int paidding = 3;//付款中
    public static final int refunding = 4;//待退款
    public static final int refunded = 5;//已退款
    public static final int underRefund = 6;//退款中
    public static final int canceled = 7;//已取消
    public static final int canceled_8 = 8;//已取消
    public static final int doublePay = 9;//重复缴费
    /***
     * paidWayType
     */
    public static final int paidWayType_cash_payment = 1;//主动支付
    public static final int paidWayType_help_consumed= 2;//签约代扣


    /**
     * paid_amt_type
     * @param type
     * @return
     */
    public static final int paidAmtType_cash= 1;//现金支付
    public static final int paidAmtType_account= 2;//签约支付
    public static final int paidAmtType_balance= 3;//押金支付
    public static final int paidAmtType_cash_refund= 4;//现金退款
    public static final int paidAmtType_account_refund= 5;//签约退回
    public static final int paidAmtType_account_refund_wx= 6;//退回并提现

    public static String getPaidWayName(int type) {
        switch (type) {
            case paidWayType_cash_payment:
                return "主动支付";
            case paidWayType_help_consumed:
                return "签约代扣";
            default:
                return "其他";
        }
    }
    public static String getPaidAmtName(int type) {
        switch (type) {
            case paidAmtType_cash:
                return "现金支付";
            case paidAmtType_account:
                return "账户支付";
            case paidAmtType_balance:
                return "押金支付";
            case paidAmtType_cash_refund:
                return "现金退款";
            case paidAmtType_account_refund:
                return "签约退回";
            case paidAmtType_account_refund_wx:
                return "退回并提现";
            default:
                return "其他";
        }
    }

}
